<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: gaoluo
 * @Date: 2021-08-24 10:04:02
 * @LastEditors: gaoluo
 * @LastEditTime: 2021-08-24 16:44:00
 * @FilePath: /nhw/src/components/PopupCon/test.vue
-->
<template>
  <div>
    {{ btnList }}
    <Icon />
    <Button @click="showPopup" />
    <Popup
      v-model="show"
      position="right"
      :style="{ height: '100%', width: '78%' }"
    >
      <PopupCon
        :btnList="btnList"
        :btnList1="btnList"
        phone
        contact
        date
        btnTitle="任务状态"
        @close="close"
      />
    </Popup>
  </div>
</template>

<script>
import "lib-flexible";
import "@/style/global.less";
import PopupCon from "./index.vue";
import { Icon, Button, Popup } from "vant";
export default {
  name: "NianhuawanTest",

  components: { Icon, Button, PopupCon, Popup },

  directives: {},

  data() {
    return {
      show: true,
      btnList: [
        { text: "待分配", active: true },
        { text: "待分配1", active: true },
        { text: "待分配", active: false },
        { text: "待分配", active: true },
        { text: "待分配1", active: false },
      ],
    };
  },

  mounted() {},

  methods: {
    showPopup() {
      this.show = true;
    },
    close() {
      this.show = false;
    },
  },
};
</script>

<style lang="less" scoped>
</style>